<?php
session_start();
include '../database/connect.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>M-learning Support Services For Corporate Learners</title>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link href="../css/style.css" rel="stylesheet" type="text/css" />
        <link type="text/css" href="../css/blitzer/jquery-ui-1.8.13.custom.css" rel="stylesheet" />
        <link href="../css/validation/validationEngine.jquery.css" rel="stylesheet" type="text/css" media="screen" />
        <link href="../css/tooltip.css" rel="stylesheet" type="text/css" media="screen" />
        <script type="text/javascript" src="../js/jquery-1.6.min.js"></script>
        <script type="text/javascript" src="../js/jquery-ui-1.8.13.custom.min.js"></script>
        <script src="../js/validation/jquery.validationEngine-en.js" type="text/javascript"></script>
        <script src="../js/validation/jquery.validationEngine.js" type="text/javascript"></script>
        <script src="../js/calendar.js" type="text/javascript"></script>
        <!--        load tooltips -->
        <script src="../js/tooltip.js" type="text/javascript"></script>		
        <!--        load other custom functions -->
    </head>
    <body>
        <div id="templatemo_background_top"></div>
        <div id="div">
            <div class="templatemo_container">
                <div id="templatemo_header"> 
                    <!--                    <h3 style="padding: 30px; float: right; color: #007b78;">The most flexile approach to education.</h3>-->
                </div>
                <div class="templatemo_content">
                    <div id="templatemo_content_white_top">
                        <div id="templatemo_menu">
                            <ul>
                                <li <?php if ($page == 'index') { ?>class="current"<?php } ?>><a href="index.php">HOME</a></li>
                                <li <?php if ($page == 'user') { ?>class="current"<?php } ?>><a href="staff_action.php">STAFF</a></li>
                                <li <?php if ($page == 'admin') { ?>class="current"<?php } ?>><a href="../actions/admin_login.php">ADMIN</a></li>
                                <?php if (isset($_SESSION['username'])) { ?>
                                <li ><a href="../actions/logout.php">Logout <?php echo $_SESSION['username']; ?></a></li>
                                <?php  } else { ?>
                                <li><a href="admin.php">CONTACT US</a></li>
                                <?php } ?>

                            </ul>
                        </div>
                    </div>
                    <div id="templatemo_content_white_middle">
                        <div class="templatemo_post_area">


                            <div id="left">
                                <?php
                                if (isset($_SESSION['username'])) {
                                    if ($page == 'admin') {
                                ?>
                                        <ul><h2><a href="admin_home.php">&lt;&lt;&lt; Admin Home</a></h2></ul>
                                <?php }
                                } ?>

                                <p> M-learning is the most flexible mode of learning today.</p>

                                <?php require_once '../slideshow/slideshow.php'; ?>
                                <p>With your phone you can do enrollments, blogging, lessons, quizes among others. Login to enjoy this and much more.</p>

                            </div>

                            <div class="right">